<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta name="generator" content="MediaWiki 1.16.2" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" href="/w/opensearch_desc.php" title="LOVE (en)" />
<link title="Creative Commons" type="application/rdf+xml" href="/w/index.php?title=Main_Page&amp;action=creativecommons" rel="meta" />
<link rel="copyright" href="http://www.gnu.org/copyleft/fdl.html" />
<link rel="alternate" type="application/atom+xml" title="LOVE Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom" />		<title>Main Page - LOVE</title>
		<link rel="stylesheet" href="/w/skins/common/shared.css?270" media="screen" />
<link rel="stylesheet" href="/w/skins/common/commonPrint.css?270" media="print" />
<link rel="stylesheet" href="/w/skins/love/main.css?270" media="screen" />
<link rel="stylesheet" href="/w/index.php?title=MediaWiki:Common.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" />
<link rel="stylesheet" href="/w/index.php?title=MediaWiki:Print.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" media="print" />
<link rel="stylesheet" href="/w/index.php?title=MediaWiki:Love.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" />
<link rel="stylesheet" href="/w/index.php?title=-&amp;action=raw&amp;maxage=18000&amp;gen=css" />
		<!--[if lt IE 7]><script type="text/javascript" src="/w/skins/common/IEFixes.js?270"></script>
		<meta http-equiv="imagetoolbar" content="no" /><![endif]-->

		<script>
var skin="love",
stylepath="/w/skins",
wgUrlProtocols="http\\:\\/\\/|https\\:\\/\\/|ftp\\:\\/\\/|irc\\:\\/\\/|gopher\\:\\/\\/|telnet\\:\\/\\/|nntp\\:\\/\\/|worldwind\\:\\/\\/|mailto\\:|news\\:|svn\\:\\/\\/",
wgArticlePath="/wiki/$1",
wgScriptPath="/w",
wgScriptExtension=".php",
wgScript="/w/index.php",
wgVariantArticlePath=false,
wgActionPaths={},
wgServer="http://love2d.org",
wgCanonicalNamespace="",
wgCanonicalSpecialPageName=false,
wgNamespaceNumber=0,
wgPageName="Main_Page",
wgTitle="Main Page",
wgAction="view",
wgArticleId=1,
wgIsArticle=true,
wgUserName=null,
wgUserGroups=null,
wgUserLanguage="en",
wgContentLanguage="en",
wgBreakFrames=false,
wgCurRevisionId=2640,
wgVersion="1.16.2",
wgEnableAPI=true,
wgEnableWriteAPI=true,
wgSeparatorTransformTable=["", ""],
wgDigitTransformTable=["", ""],
wgMainPageTitle="Main Page",
wgFormattedNamespaces={"-2": "Media", "-1": "Special", "0": "", "1": "Talk", "2": "User", "3": "User talk", "4": "LOVE", "5": "LOVE talk", "6": "File", "7": "File talk", "8": "MediaWiki", "9": "MediaWiki talk", "10": "Template", "11": "Template talk", "12": "Help", "13": "Help talk", "14": "Category", "15": "Category talk", "102": "Property", "103": "Property talk", "104": "Type", "105": "Type talk", "108": "Concept", "109": "Concept talk", "500": "Tutorial", "501": "Tutorial talk"},
wgNamespaceIds={"media": -2, "special": -1, "": 0, "talk": 1, "user": 2, "user_talk": 3, "love": 4, "love_talk": 5, "file": 6, "file_talk": 7, "mediawiki": 8, "mediawiki_talk": 9, "template": 10, "template_talk": 11, "help": 12, "help_talk": 13, "category": 14, "category_talk": 15, "property": 102, "property_talk": 103, "type": 104, "type_talk": 105, "concept": 108, "concept_talk": 109, "tutorial": 500, "tutorial_talk": 501, "image": 6, "image_talk": 7},
wgSiteName="LOVE",
wgCategories=[],
wgRestrictionEdit=["sysop"],
wgRestrictionMove=["sysop"];
</script>
		<script type="text/javascript" src="/w/skins/common/wikibits.js?270"><!-- wikibits js --></script>
		<!-- Head Scripts -->
<script src="/w/skins/common/ajax.js?270"></script>
		<link rel="alternate" type="application/rdf+xml" title="Main Page" href="/w/index.php?title=Special:ExportRDF/Main_Page&amp;xmlmime=rdf" />
		<script type="text/javascript" src="/w/index.php?title=-&amp;action=raw&amp;gen=js&amp;useskin=love"><!-- site js --></script>
  <!-- Google Analytics -->
  <script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-6143729-1']);
    _gaq.push(['_trackPageview']);
    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();
  </script>
  <script src="/egg.js"></script>
  <link href="https://plus.google.com/b/108553500970002863436/" rel="publisher" />
	</head>
<body class="mediawiki ltr ns-0 ns-subject page-Main_Page skin-love">
	<div id="globalWrapper">
		<div id="column-content">
	<div id="content">
		<a name="top" id="top"></a>
			
		<div id="p-cactions">
			<h5>Views</h5>
			<div>
				<ul>
		
					 <li id="ca-nstab-main" class="selected"><a href="/wiki/Main_Page" title="View the content page [c]" accesskey="c">Page</a></li>
					 <li id="ca-talk"><a href="/wiki/Talk:Main_Page" title="Discussion about the content page [t]" accesskey="t">Discussion</a></li>
					 <li id="ca-viewsource"><a href="/w/index.php?title=Main_Page&amp;action=edit" title="This page is protected.&#10;You can view its source [e]" accesskey="e">View source</a></li>
					 <li id="ca-history"><a href="/w/index.php?title=Main_Page&amp;action=history" title="Past revisions of this page [h]" accesskey="h">History</a></li>				</ul>
			</div>
		</div>
	
		<h1 id="firstHeading" class="firstHeading">Main Page</h1>
		<div id="bodyContent">
			<div id="contentSub"></div>
									<!-- start content -->
			<h2> <span class="mw-headline" id="Welcome"> Welcome </span></h2>
<p>As you probably know by now, <a href="http://love2d.org" class="external text" rel="nofollow">LÖVE</a> is a framework for making 2D games in the Lua programming language. LÖVE is totally free, and can be used in anything from friendly open-source hobby projects, to evil, closed-source commercial ones. 
</p><p>Some interesting places to go from here:
</p>
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
<ul><li> <a href="/wiki/Getting_Started" title="Getting Started">Getting Started</a>
</li><li> <a href="/wiki/Category:Tutorials" title="Category:Tutorials">Tutorials</a>
</li><li> <a href="/wiki/love" title="love">love</a> (The module)
</li><li> <a href="/wiki/Game_Distribution" title="Game Distribution">Game Distribution</a>
</li><li> <a href="/wiki/Config_Files" title="Config Files">Config Files</a>
</li><li> <a href="/wiki/License" title="License">License</a> (Free!)
</li><li> <a href="/wiki/Category:Games" title="Category:Games">Games</a>
</li><li> <a href="/wiki/Category:Libraries" title="Category:Libraries">Libraries</a>
</li><li> <a href="/wiki/Category:Software" title="Category:Software">Software</a>
</li><li> <a href="/wiki/Category:Snippets" title="Category:Snippets">Snippets</a>
</li></ul>
</div>
<h2> <span class="mw-headline" id="Lua"> Lua </span></h2>
<p>Never used Lua before? It's a really cool language! This manual won't teach you Lua, but fortunately there are other good resources for that. 
</p>
<ul><li> <a href="http://lua.org/pil" class="external text" rel="nofollow">Programming in Lua (first edition)</a>
</li><li> <a href="http://lua-users.org/wiki/TutorialDirectory" class="external text" rel="nofollow">Lua-Users Tutorials</a>
</li><li> <a href="http://www.lua.org/manual/5.1/" class="external text" rel="nofollow">Lua 5.1 Reference Manual</a>
</li></ul>
<h2> <span class="mw-headline" id="Hello_World"> Hello World </span></h2>
<p>This is the full source for 'hello world' in LÖVE. Running this code will cause an 800 by 600 window to appear, and display white text on a black background.
</p>
<div dir="ltr" class="mw-geshi" style="text-align: left;"><div class="lua source-lua"><span class="kw1">function</span> love.draw<span class="br0">&#40;</span><span class="br0">&#41;</span><br />&nbsp; &nbsp; love.graphics.<span class="kw1">print</span><span class="br0">&#40;</span><span class="st0">'Hello World!'</span>, <span class="nu0">400</span>, <span class="nu0">300</span><span class="br0">&#41;</span><br /><span class="kw1">end</span></div></div>
<h2> <span class="mw-headline" id="Editing_the_wiki"> Editing the wiki </span></h2>
<p><b>Please read the <a href="/wiki/Guidelines" title="Guidelines">Guidelines</a> before editing the wiki!</b>
</p>
<h2> <span class="mw-headline" id="Other_Languages"> Other Languages </span></h2>
<div class="i18n">
<p><a href="/wiki/Main_Page_(Dansk)" title="Main Page (Dansk)">Dansk</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(Deutsch)" title="Main Page (Deutsch)">Deutsch</a>&nbsp;&ndash;
<strong class="selflink">English</strong>&nbsp;&ndash; 
<a href="/wiki/Main_Page_(Espa%C3%B1ol)" title="Main Page (Español)">Español</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(Fran%C3%A7ais)" title="Main Page (Français)">Français</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(Indonesia)" title="Main Page (Indonesia)">Indonesia</a>&nbsp;&ndash;
<a href="/w/index.php?title=Main_Page_(Italiano)&amp;action=edit&amp;redlink=1" class="new" title="Main Page (Italiano) (page does not exist)">Italiano</a>&nbsp;&ndash;
<a href="/w/index.php?title=Main_Page_(Lietuvi%C5%A1kai)&amp;action=edit&amp;redlink=1" class="new" title="Main Page (Lietuviškai) (page does not exist)">Lietuviškai</a>&nbsp;&ndash;
<a href="/w/index.php?title=Main_Page_(Magyar)&amp;action=edit&amp;redlink=1" class="new" title="Main Page (Magyar) (page does not exist)">Magyar</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(Nederlands)" title="Main Page (Nederlands)">Nederlands</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(Polski)" title="Main Page (Polski)">Polski</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(Portugu%C3%AAs)" title="Main Page (Português)">Português</a>&nbsp;&ndash;
<a href="/w/index.php?title=Main_Page_(Rom%C3%A2n%C4%83)&amp;action=edit&amp;redlink=1" class="new" title="Main Page (Română) (page does not exist)">Română</a>&nbsp;&ndash;
<a href="/w/index.php?title=Main_Page_(Slovensk%C3%BD)&amp;action=edit&amp;redlink=1" class="new" title="Main Page (Slovenský) (page does not exist)">Slovenský</a>&nbsp;&ndash;
<a href="/w/index.php?title=Main_Page_(Suomi)&amp;action=edit&amp;redlink=1" class="new" title="Main Page (Suomi) (page does not exist)">Suomi</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(Svenska)" title="Main Page (Svenska)">Svenska</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(T%C3%BCrk%C3%A7e)" title="Main Page (Türkçe)">Türkçe</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(%C4%8Cesky)" title="Main Page (Česky)">Česky</a>&nbsp;&ndash;
<a href="/w/index.php?title=Main_Page_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&amp;action=edit&amp;redlink=1" class="new" title="Main Page (Ελληνικά) (page does not exist)">Ελληνικά</a>&nbsp;&ndash;
<a href="/w/index.php?title=Main_Page_(%D0%91%D1%8A%D0%BB%D0%B3%D0%B0%D1%80%D1%81%D0%BA%D0%B8)&amp;action=edit&amp;redlink=1" class="new" title="Main Page (Български) (page does not exist)">Български</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)" title="Main Page (Русский)">Русский</a>&nbsp;&ndash;
<a href="/w/index.php?title=Main_Page_(%D0%A1%D1%80%D0%BF%D1%81%D0%BA%D0%B8)&amp;action=edit&amp;redlink=1" class="new" title="Main Page (Српски) (page does not exist)">Српски</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(%D0%A3%D0%BA%D1%80%D0%B0%D1%97%D0%BD%D1%81%D1%8C%D0%BA%D0%B0)" title="Main Page (Українська)">Українська</a>&nbsp;&ndash;
<a href="/w/index.php?title=Main_Page_(%D7%A2%D7%91%D7%A8%D7%99%D7%AA)&amp;action=edit&amp;redlink=1" class="new" title="Main Page (עברית) (page does not exist)">עברית</a>&nbsp;&ndash;
<a href="/w/index.php?title=Main_Page_(%E0%B9%84%E0%B8%97%E0%B8%A2)&amp;action=edit&amp;redlink=1" class="new" title="Main Page (ไทย) (page does not exist)">ไทย</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(%E6%97%A5%E6%9C%AC%E8%AA%9E)" title="Main Page (日本語)">日本語</a>&nbsp;&ndash;
<a href="/w/index.php?title=Main_Page_(%E6%AD%A3%E9%AB%94%E4%B8%AD%E6%96%87)&amp;action=edit&amp;redlink=1" class="new" title="Main Page (正體中文) (page does not exist)">正體中文</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)" title="Main Page (简体中文)">简体中文</a>&nbsp;&ndash;
<a href="/wiki/Main_Page_(%ED%95%9C%EA%B5%AD%EC%96%B4)" title="Main Page (한국어)">한국어</a> 
<br />
<span style="text-align:right;"><i><a href="/wiki/Help:i18n" title="Help:i18n">More info</a></i></span>
</p>
</div>

<!-- 
NewPP limit report
Preprocessor node count: 252/1000000
Post-expand include size: 2882/2097152 bytes
Template argument size: 1036/2097152 bytes
Expensive parser function count: 0/100
-->

<!-- Saved in parser cache with key love2d_wiki:pcache:idhash:1-0!1!0!!en!2!edit=0 and timestamp 20111124175342 -->
<div class="printfooter">
Retrieved from "<a href="http://love2d.org/wiki/Main_Page">http://love2d.org/wiki/Main_Page</a>"</div>
			<div id='catlinks' class='catlinks catlinks-allhidden'></div>			<!-- end content -->
						<div class="visualClear"></div>
		</div>
	</div>
		</div>
		<div id="column-one">

	<div class="portlet" id="p-personal">
		<h5>Personal tools</h5>
		<div class="pBody">
			<ul>
				<li id="pt-login"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Main_Page" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li>
			</ul>
		</div>
	</div>
	<div class="portlet" id="p-logo">
		<a style="background-image: url(/w/skins/love/wiki.png);" href="/wiki/Main_Page" title="Visit the main page"></a>
	</div>
<!--	<div class="portlet" id="p-docs">
		<h5>Documentation</h5>
		<div class="pBody">
			<ul>
				<li><a href="http://love2d.org/wiki/love">love</a></li>
				<li><a href="http://love2d.org/wiki/love.audio">love.audio</a></li>
				<li><a href="http://love2d.org/wiki/love.event">love.event</a></li>
				<li><a href="http://love2d.org/wiki/love.filesystem">love.filesystem</a></li>
				<li><a href="http://love2d.org/wiki/love.graphics">love.graphics</a></li>
				<li><a href="http://love2d.org/wiki/love.image">love.image</a></li>
				<li><a href="http://love2d.org/wiki/love.joystick">love.joystick</a></li>
				<li><a href="http://love2d.org/wiki/love.keyboard">love.keyboard</a></li>
				<li><a href="http://love2d.org/wiki/love.mouse">love.mouse</a></li>
				<li><a href="http://love2d.org/wiki/love.physics">love.physics</a></li>
				<li><a href="http://love2d.org/wiki/love.sound">love.sound</a></li>
				<li><a href="http://love2d.org/wiki/love.timer">love.timer</a></li>
			</ul>
		</div>
	</div> -->
	<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
	<div class='generated-sidebar portlet' id='p-documentation'>
		<h5>documentation</h5>
		<div class='pBody'>
			<ul>
				<li id="n-love"><a href="/wiki/love">love</a></li>
				<li id="n-love.audio"><a href="/wiki/love.audio">love.audio</a></li>
				<li id="n-love.event"><a href="/wiki/love.event">love.event</a></li>
				<li id="n-love.filesystem"><a href="/wiki/love.filesystem">love.filesystem</a></li>
				<li id="n-love.font"><a href="/wiki/love.font">love.font</a></li>
				<li id="n-love.graphics"><a href="/wiki/love.graphics">love.graphics</a></li>
				<li id="n-love.image"><a href="/wiki/love.image">love.image</a></li>
				<li id="n-love.joystick"><a href="/wiki/love.joystick">love.joystick</a></li>
				<li id="n-love.keyboard"><a href="/wiki/love.keyboard">love.keyboard</a></li>
				<li id="n-love.mouse"><a href="/wiki/love.mouse">love.mouse</a></li>
				<li id="n-love.physics"><a href="/wiki/love.physics">love.physics</a></li>
				<li id="n-love.sound"><a href="/wiki/love.sound">love.sound</a></li>
				<li id="n-love.thread"><a href="/wiki/love.thread">love.thread</a></li>
				<li id="n-love.timer"><a href="/wiki/love.timer">love.timer</a></li>
			</ul>
		</div>
	</div>
	<div class='generated-sidebar portlet' id='p-navigation'>
		<h5>Navigation</h5>
		<div class='pBody'>
			<ul>
				<li id="n-Home"><a href="http://love2d.org/">Home</a></li>
				<li id="n-Forums"><a href="http://love2d.org/forums">Forums</a></li>
				<li id="n-Issue-tracker"><a href="http://bitbucket.org/rude/love/issues">Issue tracker</a></li>
			</ul>
		</div>
	</div>
	<div class='generated-sidebar portlet' id='p-wiki_navigation'>
		<h5>wiki navigation</h5>
		<div class='pBody'>
			<ul>
				<li id="n-mainpage-description"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z">Main page</a></li>
				<li id="n-recentchanges"><a href="/wiki/Special:RecentChanges" title="The list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li>
				<li id="n-randompage"><a href="/wiki/Special:Random" title="Load a random page [x]" accesskey="x">Random page</a></li>
			</ul>
		</div>
	</div>
	<div id="p-search" class="portlet">
		<h5><label for="searchInput">Search</label></h5>
		<div id="searchBody" class="pBody">
			<form action="/w/index.php" id="searchform"><div>
				<input type='hidden' name="title" value="Special:Search"/>
				<input id="searchInput" name="search" type="text" title="Search LOVE [f]" accesskey="f" value="" />
				<input type='submit' name="go" class="searchButton" id="searchGoButton"	value="Go" title="Go to a page with this exact name if exists" />&nbsp;
				<input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="Search" title="Search the pages for this text" />
			</div></form>
		</div>
	</div>
	<div class="portlet" id="p-tb">
		<h5>Toolbox</h5>
		<div class="pBody">
			<ul>
				<li id="t-whatlinkshere"><a href="/wiki/Special:WhatLinksHere/Main_Page" title="List of all wiki pages that link here [j]" accesskey="j">What links here</a></li>
				<li id="t-recentchangeslinked"><a href="/wiki/Special:RecentChangesLinked/Main_Page" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li>
<li id="t-specialpages"><a href="/wiki/Special:SpecialPages" title="List of all special pages [q]" accesskey="q">Special pages</a></li>
				<li id="t-print"><a href="/w/index.php?title=Main_Page&amp;printable=yes" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li>				<li id="t-permalink"><a href="/w/index.php?title=Main_Page&amp;oldid=2640" title="Permanent link to this revision of the page">Permanent link</a></li><li id="t-smwbrowselink"><a href="/wiki/Special:Browse/Main_Page" title="Special:Browse/Main Page">Browse properties</a></li>			</ul>
		</div>
	</div>
		</div><!-- end of the left (by default at least) column -->
			<div class="visualClear"></div>
			<div id="footer">
				<div id="f-poweredbyico"><a href="http://www.mediawiki.org/"><img src="/w/skins/common/images/poweredby_mediawiki_88x31.png" height="31" width="88" alt="Powered by MediaWiki" /></a></div>
				<div id="f-copyrightico"><a href="http://www.gnu.org/copyleft/fdl.html"><img src="/w/skins/common/images/gnu-fdl.png" alt="GNU Free Documentation License 1.3" width="88" height="31" /></a></div>
			<ul id="f-list">
					<li id="lastmod"> This page was last modified on 11 July 2010, at 19:34.</li>
					<li id="viewcount">This page has been accessed 212,090 times.</li>
					<li id="copyright">Content is available under <a href="http://www.gnu.org/copyleft/fdl.html" class="external ">GNU Free Documentation License 1.3</a>.</li>
					<li id="privacy"><a href="/wiki/LOVE:Privacy_policy" title="LOVE:Privacy policy">Privacy policy</a></li>
					<li id="about"><a href="/wiki/LOVE:About" title="LOVE:About">About LOVE</a></li>
					<li id="disclaimer"><a href="/wiki/LOVE:General_disclaimer" title="LOVE:General disclaimer">Disclaimers</a></li>
			</ul>
		</div>
</div>

<script>if (window.runOnloadHook) runOnloadHook();</script>
<!-- Served in 0.187 secs. --></body></html>
